import React, { useState } from 'react'

import { useNavigate } from 'react-router-dom';
import { Search, Toast } from 'react-vant';
import { ChatO, RefundO, Passed } from '@react-vant/icons';
type Props = {}

const Index = (props: Props) => {

    const [value, setValue] = useState('');

    const navigate = useNavigate();
    return (
        <div>
            <div className="top">
                <Search
                    showAction
                    actionText={<div onClick={() => navigate('/search')}>搜索</div>}
                    value={value}
                    onChange={setValue}
                    placeholder="请输入搜索关键词"
                />
                <RefundO />
                <ChatO />
            </div>
        </div>
    )
}

export default Index;